import request from '@/utils/request';
import Qs from 'qs'
//充值列表
export function getList(params) {
    return request({
      url: '/back/recharge/getBackRechargeList',
      method: 'get',
      params
    })
}

// 新增代理商
export function add (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/recharge/addRecharge',
    headers:{'content-type': 'application/x-www-form-urlencoded'}

  })
}
// 新增代理商
export function update (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/recharge/updateRecharge',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

// 新增代理商
export function del (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/recharge/deleteRecharge',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}


